<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="<?=domain?>static/style/manage.css" rel="stylesheet" type="text/css" />
<link href="<?=domain?>static/style/fancybox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?=domain?>static/scripts/core.js" charset="utf-8"></script>
<script type="text/javascript" src="<?=domain?>static/scripts/fancybox.js" charset="utf-8"></script>
<script type="text/javascript" src="<?=domain?>static/scripts/manage.js" charset="utf-8"></script>
<title><?=name?></title>
<body class="hoariness">
<div class="head">
	<div class="area">
		<div class="logo">网站联盟管理后台</div>
		<div class="parent">
			<div class="nav">
				<ul>
					<?php
						foreach($menu as $key=>$value){
							echo '<li><a href="'.domain.'index.php?c='.$value['child'][0]['controller'].'&a='.$value['child'][0]['method'].'" class="'.(stristr($value['controller'],$this->request['controller'])?'sel':'').'">'.$value['name'].'</a></li>';
						}
					?>
	    		</ul>
			</div>
			<div class="user">欢迎您&nbsp;<?=$name?>&nbsp;,<a href="<?=domain?>index.php?c=manage&a=out">【退出】</a></div>
		</div>
	</div>
	<div class="child">
		<div class="nav">
			<?php
				$controller=0;$method=0;
				foreach($menu as $k=>$v){
					if(stristr($v['controller'],$this->request['controller'])){
						$controller=$k;
						echo '<ul class="sel '.$v['controller'].'">';
					}else{
						echo '<ul class="'.$v['controller'].'">';
					}
					foreach($v['child'] as $key=>$value){
						if($value['method']==$this->request['method']&&$value['controller']==$this->request['controller']){
							$method=$key;
						}
						echo '<li class="'.$value['method'].'"><a href="'.domain.'index.php?c='.$value['controller'].'&a='.$value['method'].'">'.$value['name'].'</a></li>';
					}
					echo '</ul>';
				}
			?>
		</div>
		<div class="place">当前位置:<?=$menu[$controller]['name']?>&nbsp;>&nbsp;<?=$menu[$controller]['child'][$method]['name']?></div>
	</div>
</div>
<div class="work">
	<div class="form">
		<h3 class="real">
           <div class="m"><?=$menu[$controller]['child'][$method]['name']?></div>
           <div class="search">
	           	<form name="home" method="GET" action="<?=domain?>index.php" accept-charset="UTF-8">
	  			<input type="hidden" name="c" value="bank"/><input type="hidden" name="a" value="index"/>
	  			<div class="select">
		  			<a href="#"><label>设置查询条件</label><span></span></a>
	           		<div class="box">
		           		<table class="fix">
							<thead>
								<tr>
									<th>状态:</th>
									<th>
										<label><input type="checkbox" name="locked[]" value="0" <?=(!isset($locked)||isset($locked[0])?' checked':'')?>/><span>可用</span></label>
			   							<label><input type="checkbox" name="locked[]" value="1"<?=(!isset($locked)||isset($locked[1])?' checked':'')?>/><span>审核</span></label>
			   							<label><input type="checkbox" name="locked[]" value="2"<?=(!isset($locked)||isset($locked[2])?' checked':'')?>/><span>无效</span></label>
									</th>
								</tr>
							</thead>
						</table>
			   		</div>
	  			</div>
	  			<div class="input"><input type="text" name="search" value="<?=$search?>" size="13" maxlength="60" search="true"<?=(empty($search)?'':' class="wipe"')?>/></div>
	  			<div class="tab select">
			         <a href="#"><label>帐户</label><input type="hidden" name="tab" value="account"/><span></span></a>
		           	<ul>
				   	  <li tab="account"><a href="#">帐户</a></li>
					  <li tab="name"><a href="#">姓名</a></li>
					  <li tab="mail"><a href="#">邮箱</a></li>
			   		</ul>
		         </div>
	  			<div class="submit"><input type="submit" name="filter" value="搜索" class="yellow"/></div>
	  			</form>
           </div>
        </h3>
		 <table class="fix">
			<thead>
				<tr>
					<th><input type="checkbox" name="all" value="" id="input_all"/></th>
					<th>邮箱</th>
					<th>类型</th>
					<th>开户银行</th>
					<th>开户支行</th>
					<th>开户地</th>
					<th>银行帐号</th>
					<th>开户名</th>
					<th>状态</th>
					<th style="width:60px">操作</th>
				</tr>
			</thead>
			<tbody>
				<?php
				foreach($bank as $key=>$value){
				?>
				<tr>
					<td><input type="checkbox" name="member[]" value="<?=$value['member']?>"/></td>
					<td><?=$value['mail']?></td>
					<td><?=$value['type']==0?'个人账户':'公司账户'?></td>
					<td><?=$sort[$value['company']]['name']?></td>
					<td><?=$value['subbranch']?></td>
					<td><?=$sort[$value['province']]['name']?>,<?=$sort[$value['city']]['name']?></td>
					<td><?=$value['account']?></td>
					<td><?=$value['name']?></td>
					<td><?=$value['locked']==0?'可用':($value['locked']==1?'审核':'无效')?></td>
					<td>
						<?php if(isset($purview['bank']['locked'])){?><a href="<?=(domain.'index.php?c=bank&a=locked&member='.$value['member'])?>" action="RequestA" mixed="sub:{locked:<?=($value['locked']==0?2:0)?>}"><?=$value['locked']==0?'无效':'激活'?></a>&nbsp;<?php }?>
						<?php if(isset($purview['bank']['remark'])){?><a fancybox="width:500,height:138" href="<?=(domain.'index.php?c=bank&a=remark&member='.$value['member'])?>">备注</a>&nbsp;<?php }?>
					</td>
				</tr>
				<?php
				}
				?>
			</tbody>
		</table>
		<div class="batch">
			<span><label for="input_all">全选</label></span>
			<?php if(isset($purview['bank']['locked'])){?><span><a href="<?=(domain.'index.php?c=bank&a=locked&locked=0')?>" action="RequestBa">批量激活</a></span><?php }?>
			<?php if(isset($purview['bank']['locked'])){?><span><a href="<?=(domain.'index.php?c=bank&a=locked&locked=2')?>" action="RequestBa">无效</a></span><?php }?>
		</div>
	</div>
	<div class="pagination"><?=$pagination?>&nbsp;&nbsp;<font>共<?=$total?>条记录</font></div>
</div>
<div class="footer">
	<div class="credits">Power by <a href="http://www.cnadlm.com" target="_blank">cnadlm.com</a></div>
	<div class="connect">
		<a href="http://www.cnadlm.com" target="_blank">系统升级</a>
		<a href="http://www.cnadlm.com/help.html" target="_blank">帮助文档</a>
	</div>
</div>
</body>
</html>